#! /bin/bash

. $LSB_DIR/tool-functions || \
	{ echo "invalid lsb dir: $LSB_DIR" >&2; exit 1; }

. $INITRAMFS_DIR_DATA/functions || error_exit "import functions fail"

set_level "${INITRAMFS_PRINT_LEVEL:-INFO}"
[ -n "$INITRAMFS_LOG" ] && set_log "$INITRAMFS_LOG"

msg collect udev

copy_exec /sbin/udevd /sbin/udevadm
[ -d "/lib/udev/rules.d" ] && copy_track /lib/udev/rules.d
[ -d "/etc/udev/rules.d" ] && copy_track /etc/udev/rules.d
[ -e "/etc/udev/udev.conf" ] && copy_track /etc/udev/udev.conf

exit 0
